﻿namespace Angle
{
    using System.Reflection;

    using Abp.WebApi;

    using Angle.Application;
    using Angle.Application.UserServices;

    using Skymate.Application.Services;
    using Skymate.Modules;
    using Skymate.Mvc;
    using Skymate.Mvc.Controllers.Dynamic.Builders;

    [DependsOn(typeof(AngleApplicationModule),typeof(SkymateMvcModule),typeof(AbpWebApiModule))]
    
    public class AngleWebModule: AbpModule
    {

        public override void PreInitialize()
        {
            DynamicApiControllerBuilder
                       .ForAll<IApplicationServiceBase>(Assembly.GetAssembly(typeof(UserServiceBase)), "angle")
                        .WithConventionalVerbs()
                        .Build();
        }

        public override void Initialize()
        {
            IocManager.RegisterAssemblyByConvention(Assembly.GetExecutingAssembly());
            
        }



    }
}